<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:include="include :: header"></head>
<body>
<div class="wrapper wrapper-content">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div th:include="include :: menu"></div>
            <div id="myAlert" class="alert alert-success">
                <a href="#" class="close" data-dismiss="alert">&times;</a>
                <span id="alertMsg">修改成功。</span>
            </div>
            <br/>
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>
                        #
                    </th>
                    <th>
                        任务名称
                    </th>
                    <th>
                        任务时间
                    </th>
                    <th>
                        任务标识
                    </th>
                    <th>
                        创建时间
                    </th>
                    <th>
                        更新时间
                    </th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody id="content">
                </tbody>
            </table>
            <div class="padlr" align="right">
                <ul id="data-pagination" class="pagination">
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">修改任务执行时间</h4>
            </div>
            <input type="hidden" id="id">
            <div class="modal-body">
                <div class="form-group">
                    <label for="jobName">任务名称</label>
                    <input type="text" name="jobName" readonly=readonly class="form-control" id="jobName"
                           placeholder="任务名称">
                </div>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label for="enable">开关</label>
                    <select class="form-control" id="enable">
                        <option value="">---选择开关---</option>
                        <option value="010">开启</option>
                        <option value="020">关闭</option>
                    </select>
                </div>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label for="cron">任务时间</label>
                    <input type="text" name="cron" class="form-control" id="cron" placeholder="任务执行时间">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">
                    关闭
                </button>
                <button type="button" id="editTaskTimeBtn" class="btn btn-success" data-dismiss="modal">
                    保存
                </button>
            </div>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/js/index/task.js"></script>
</body>
</html>
